<?php
/**
 * Created by PhpStorm.
 * User: david
 * Date: 2018/6/19
 * Time: 18:16
 */

namespace app\controller;


use app\model\Ccp as CcpModel;

class Party extends Base
{
    public function index()
    {
        $tops = CcpModel::getTopThree();
        $top = $tops[0];
        unset($tops[0]);
        return view('index', compact(['tops', 'top']));
    }

    public function dynamic()
    {
        $list = CcpModel::getItems($this->request->param());
        return view('dynamic', compact(['list']));
    }

    public function dynamicdetail($id)
    {
        $ccp = CcpModel::get($id);
        return view('dynamicdetail', compact(['ccp']));
    }

    public function relative()
    {
        return view('relative');
    }

    public function relativedetail()
    {
        return view('relativedetail');
    }

    public function rule()
    {
        return view('rule');
    }

    public function ruledetail($id)
    {
        return view('ruledetail-' . $id);
    }

    public function structure()
    {
        return view('structure');
    }
}